/**
 * @program: hadoop_db
 * @description: Test
 * @author: zengchen
 * @create: 2021-03-31 21:40
 **/
public class Test {
    public static void main(String[] args) {

        String ss = "{sub:语文,score:81},{sub:数学,score:80}";
        System.out.println(ss.replaceAll("},[{]","|")
                    .replaceAll("sub:","")
                    .replaceAll("score:","")
                    .replaceAll("[{]","")
                    .replaceAll("}",""));
//        System.out.println(ss);
    }
}
